<?foreach ($questions['instructions']['content'] as $content){
                                if($content['type']== 'D'){?>
                                     <h5> <strong><? echo $content['description']?></strong></h5>
                                <?}
                            }?>
                        <?
                        $number = 1;
                        foreach ($questions as $item) {
                            if ($item['type'] == 'D') {
                                $secureid = substr(md5(rand()), 0, 7);
                                ?>
                                    <? echo $number .'. '?>
                                <div class="col-md-offset-1">
								
								
                                    <? foreach ($item['choices'] as $choice) { ?>
                                        <input type = 'radio' name ='<? echo $secureid.$choice['answer_id']?>' value= '<? echo $choice['answer']?>'> <? echo $choice['answer']?></><br>
                                    
                                    <? }?>
                                <br></div>
                                <?
                                $number+=1;
                                $num_of_questions += 1;
                            }
                         }
                        ?>